package collection.MyList;

public class Test3 {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(1);
        list.addFirst(2);
        list.addFirst(3);
        list.display();
        list.addLast(4);
        list.addLast(5);
        list.addLast(6);
        list.display();
        list.addIndex(0,2);
        list.display();
        list.removeIndex(1);
        list.display();
    }
}
